import java.util.Calendar;
import java.util.Date;

/**
 * Created by admin on 2017/5/24.
 */
public class test {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.DAY_OF_MONTH, calendar.get(Calendar.DAY_OF_MONTH) + 1);
        calendar.set(Calendar.HOUR_OF_DAY, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        calendar.set(Calendar.MILLISECOND, 0);
        Date start = calendar.getTime();
        System.out.println(start);
        calendar.set(Calendar.DAY_OF_MONTH, calendar.get(Calendar.DAY_OF_MONTH) + 1);
        Date end = calendar.getTime();
        System.out.println(end);
//        Calendar calendar = Calendar.getInstance();
//        calendar.add(Calendar.MINUTE, 15);
//        Date start = calendar.getTime();
//        System.out.println(start);
//        calendar.add(Calendar.MINUTE, 15);
//        Date end = calendar.getTime();
//        System.out.println(end);
    }
}


